<p id="notice"><%= notice %></p>

<h1> Validation Issues </h1>

<div class='gray_table'>
  <table >
    <thead>
    <tr >
      <th class='column1_header'>Type</th>
      <th>Form Name</th>
      <th># of Issues</th>
      <th>Total Count</th>
      <th></th>
      <th></th>
    </tr>
    </thead>

  <% @validation_issues.each do |validation_issue| %>
    <tr <%= cycle('odd', 'even')%>>
      <td><%= validation_issue.issue_type %></td>
      <td><%= validation_issue.form_name %></td>
      <td><%= validation_issue.issue_count %></td>
      <td><%= validation_issue.total_count %></td>
      <td><%= link_to 'Show', validation_admin_validation_issue_path(validation_issue) %></td>
      <td><%= link_to 'Reset!',
                      validation_admin_validation_issue_path(validation_issue),
                      method: :delete, data: { confirm: 'Are you sure?' } %></td>
    </tr>
  <% end %>
  <% if  @validation_issues.empty? %>
    <tr <%= cycle('odd', 'even')%>>
      <td colspan='6'>Sorry no data collected yet</td>
    </tr>
  <% end %>
  </table>
</div>